package com.yangjiayu.Controller;

import com.yangjiayu.bean.ChatEntity;
import com.yangjiayu.service.ChatService;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.ai.chat.model.ChatResponse;
import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Flux;

/**
 * @Classname ChatController
 * @Description TODO
 * @Date 2025/8/12 19:57
 * @Created by YangJiaYu
 */
@RestController
@RequestMapping("chat")
public class ChatController {

    @Resource
    private ChatService chatService;


    @PostMapping("doChat")
    public void doChat(@RequestBody ChatEntity  chatEntity) {
        chatService.doChat(chatEntity);
    }

}
